API Documentation
EntityRenderInfo.h
1 // EntityRenderInfo.h
3 //
5 
6 namespace nkGraphics
7 {
36  {
37  public :
38 
39  // Constructor, destructor
64  EntityRenderInfo (Mesh* mesh, Shader* shader) ;
69 
70  // Getters
75  EntityRenderInfoSlot* getSlot (unsigned int index) const ;
83  Entity* getParentEntity () const ;
84 
85  // Manipulations
98  void eraseSlot (unsigned int index) ;
99 
100  // Operators
113 
114  // Import / Export
120  virtual void exportClassToTree (nkExport::Node* rootNode) override ;
126  virtual void importClassFromTree (nkExport::Node* rootNode) override ;
127  } ;
128 }
nkGraphics::EntityRenderInfo::eraseSlot
void eraseSlot(unsigned int index)
nkGraphics::EntityRenderInfo::getSlot
EntityRenderInfoSlot * getSlot(unsigned int index) const
nkGraphics::EntityRenderInfo::EntityRenderInfo
EntityRenderInfo(EntityRenderInfo &&other)
nkExport::Exportable
An interface to define objects that can be exported using this component.
Definition: Exportable.h:15
nkGraphics::EntityRenderInfo
Compiles the render information for an Entity to use within a RenderQueue.
Definition: EntityRenderInfo.h:36
nkGraphics::EntityRenderInfo::EntityRenderInfo
EntityRenderInfo(const EntityRenderInfo &other)
nkGraphics::EntityRenderInfo::importClassFromTree
virtual void importClassFromTree(nkExport::Node *rootNode) override
nkGraphics::EntityRenderInfo::getParentEntity
Entity * getParentEntity() const
nkGraphics::Shader
A shader class, feeding data to a Program.
Definition: Shader.h:14
nkGraphics::EntityRenderInfo::getSlots
const nkMemory::BufferCast< EntityRenderInfoSlot * > & getSlots() const
nkGraphics::Entity
An entity in a render queue. It drives the shader and possible graph position for a set of renderable...
Definition: Entity.h:15
nkExport::Node
A node in the tree structure representing the data to export / import.
Definition: Node.h:42
nkGraphics::EntityRenderInfo::operator=
EntityRenderInfo & operator=(const EntityRenderInfo &other)
nkMemory::BufferCast
Holds a Buffer and make it easy to cast the binary data.
Definition: BufferCast.h:18
nkGraphics::EntityRenderInfoSlot
A slot within the render information.
Definition: EntityRenderInfoSlot.h:14
nkGraphics::EntityRenderInfo::EntityRenderInfo
EntityRenderInfo(Mesh *mesh, Shader *shader)
nkGraphics::EntityRenderInfo::EntityRenderInfo
EntityRenderInfo()
nkGraphics::EntityRenderInfo::~EntityRenderInfo
~EntityRenderInfo()
nkGraphics
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7
nkGraphics::Mesh
Holds information about a mesh. Used as a basis to render 3d models.
Definition: Mesh.h:14
nkGraphics::EntityRenderInfo::exportClassToTree
virtual void exportClassToTree(nkExport::Node *rootNode) override
nkGraphics::EntityRenderInfo::addSlot
EntityRenderInfoSlot * addSlot(const EntityRenderInfoSlot &infoSlot=EntityRenderInfoSlot())